package com.wawayaya.db.entitydao;


import com.wawayaya.bean.Advert;
import com.wawayaya.db.DBManager;
import com.wawayaya.db.basedao.AdvertDao;



public class AdvertEntityDao extends BaseEntityDao<AdvertDao, Advert, Long> {

	@Override
	protected AdvertDao initEntityDao() {
		return DBManager.newSession().getAdvertDao();
	}

	public void deleteEntityByKey(Long key) {
		getEntityDao().deleteByKey(key);
	}

	@Override
	public void replaceEntity(Advert entity) {
		getEntityDao().insertOrReplace(entity);
	}
}
